.class final Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;
.super Ljava/lang/Object;
.source "CustomPlayerUI.kt"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->initViews(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = null
.end annotation


# instance fields
.field final synthetic $playerUI:Landroid/view/View;

.field final synthetic $soundButton:Landroid/widget/ImageButton;

.field final synthetic this$0:Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;


# direct methods
.method constructor <init>(Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;Landroid/widget/ImageButton;Landroid/view/View;)V
    .locals 0

    iput-object p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->this$0:Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;

    iput-object p2, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->$soundButton:Landroid/widget/ImageButton;

    iput-object p3, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->$playerUI:Landroid/view/View;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 2

    .line 67
    iget-object p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->this$0:Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;

    invoke-static {p1}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->access$getSound$p(Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 68
    iget-object p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->$soundButton:Landroid/widget/ImageButton;

    iget-object v0, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->$playerUI:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Llt/farmis/libraries/apps_promo/R$drawable;->ic_volume_off_white_24dp:I

    invoke-static {v0, v1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/ImageButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 69
    iget-object p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->this$0:Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;

    invoke-virtual {p1}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->getYTPlayer()Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    move-result-object p1

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;->setVolume(I)V

    goto :goto_0

    .line 71
    :cond_0
    iget-object p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->this$0:Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;

    invoke-virtual {p1}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->getYTPlayer()Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    move-result-object p1

    const/16 v0, 0x64

    invoke-interface {p1, v0}, Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;->setVolume(I)V

    .line 72
    iget-object p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->$soundButton:Landroid/widget/ImageButton;

    iget-object v0, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->$playerUI:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Llt/farmis/libraries/apps_promo/R$drawable;->ic_volume_up_white_24dp:I

    invoke-static {v0, v1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/ImageButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 74
    :goto_0
    iget-object p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;->this$0:Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;

    invoke-static {p1}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->access$getSound$p(Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;)Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    invoke-static {p1, v0}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->access$setSound$p(Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;Z)V

    return-void
.end method
